//
//  Common.h
//  DingDing
//
//  Created by LHL on 14/11/22.
//  Copyright (c) 2014年 com.gordon. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UserModel.h"
#import <SDWebImage/UIImageView+WebCache.h>
@class petsModel;
typedef void(^petAge)(NSString *agestr,NSInteger age);
typedef void(^getPetModel)(PETMODEL *model);
typedef void(^getDataArray)(NSMutableArray *arr);
typedef void(^popBlock)(void);
typedef void(^deleteInteger)(NSInteger tag);
typedef void(^integerTrans)(NSInteger num);
@interface Common : UIView
+(void)saveUserid:(USERMODEL *)model;
+(void)saveUserInfo:(NSString *)user pwd:(NSString *)pwd;
+(void)saveThirdUserInfo:(THIRDLOGINUSERMODEL *)model;
+(CGFloat)getItemHeight:(SHAREITEMMODEL *)model;
+(void)cleanUserInfo;
+(UIImage *)imageWithImageSimple:(UIImage*)image scaledToSize:(CGSize)newSize;
@end

@interface petsModel : NSObject
@property(nonatomic,strong)NSString * key;
@property(nonatomic,strong)NSMutableArray *data;
@end

@interface CustomDatePiker : UIView
@property(nonatomic,strong)petAge age;
-(void)getAge:(petAge)block;
-(void)showPiker;
//-(UIView *)addPikerView;
@end
